﻿using System;


namespace YmtAuth.Domain
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public class EntityCollectionMappingAttribute : Attribute
    {
        public EntityCollectionMappingAttribute()
        {
            UseStaticMapping = true;
        }
        /// <summary>
        /// 使用静态集合映射
        /// </summary>
        public virtual bool UseStaticMapping { get; set; }
        /// <summary>
        /// 静态指定映射的数据库名
        /// </summary>
        public virtual string StaticDbName { get; set; }
        /// <summary>                                                 
        ///  静态指定映射的集合名
        /// </summary>
        public virtual string StaticTbName { get; set; }
        /// <summary>
        /// 实体“属性”动态映射数据库名
        /// </summary>
        public virtual string DynamicPropertyDbName { get; set; }
        /// <summary>
        /// 实体“属性”动态映射集合名
        /// </summary>
        public virtual string DynamicPropertyTbName { get; set; }
    }
}
